from flask import Flask, render_template

app = Flask(__name__)

@app.route('/')
@app.route('/home')
def home():
    return render_template('home.html', title='主页')

@app.route('/about')
def about():
    return render_template('about.html', title='关于我们')

@app.route('/translation')
def translation():
    return render_template('translation.html', title='英文翻译')

@app.route('/submenu1')
def submenu1():
    return render_template('submenu1.html', title='子菜单 1')

@app.route('/submenu2')
def submenu2():
    return render_template('submenu2.html', title='子菜单 2')

@app.route('/submenu3')
def submenu3():
    return render_template('submenu3.html', title='子菜单 3')

if __name__ == '__main__':
    app.run(host='0.0.0.0',debug=True)
